package cn.hzking.gjmall.greendao.beans;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2018/2/23.
 */
@Entity
public class HomeCacheBean {
    @Id(autoincrement = true)
    private Long id;//数据库里面的id
    @Property(nameInDb = "VERSIONCODE")
    private int versionCode; //版本号
    @Property(nameInDb = "JSON")
    private String json; //缓存的json数据
    @Property(nameInDb = "contentId")
    private int contentId;
    public int getContentId() {
        return this.contentId;
    }
    public void setContentId(int contentId) {
        this.contentId = contentId;
    }
    public String getJson() {
        return this.json;
    }
    public void setJson(String json) {
        this.json = json;
    }
    public int getVersionCode() {
        return this.versionCode;
    }
    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Generated(hash = 1867747655)
    public HomeCacheBean(Long id, int versionCode, String json, int contentId) {
        this.id = id;
        this.versionCode = versionCode;
        this.json = json;
        this.contentId = contentId;
    }
    @Generated(hash = 1129076414)
    public HomeCacheBean() {
    }
 
}
